package com.example.demo1115.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MyQuartz {
    @Scheduled(cron = "0/2 * * * * ?")
    public void test01(){
        System.out.println("两秒执行一次");
    }

}
